import service from "@/utils/http";

export function getCodeImg() {
  return service.get(
    "/user/getCode"
  );
}

export function doLogin(data) {
  return service({
    url: '/user/doLogin',
    method: 'post',
    data
  })
}

export function register(data) {
  return service({
    url: '/user/register',
    method: 'post',
    data
  })
}
